<?php

$_this =& $this;

/* @var $_this View */
/* @var $form FormHelper */
/* @var $editForm EditFormHelper */
/* @var $html HtmlHelper */
/* @var $ehtml EHtmlHelper */
/* @var $javascript JavascriptHelper */
/* @var $jqax JqaxHelper */
/* @var $filterBlock FilterBlock */

?>

<?=$editForm->create($modelName,
		array(
			'url'=> array(
					"controller" => "tests",
					"action" => 'change_prices',
					'id' => $this->data[$modelName][$PKName],
					'price_type' => $this->params['pass']['price_type']
				),

			'allowInput' => $this->data[$modelName]['__allows']['update']));
	    ?>
	    <?=$editForm->startSet();?>

	    <? if($this->params['pass']['price_type'] == "TEST") : ?>
	    <?=$editForm->text("price_test", __d($po_domain, 'price_test', true), array('required' => true, 'vertical' => false));?>
	    <? elseif ($this->params['pass']['price_type'] == "BLANK") : ?>
	    <?=$editForm->text("price_blank", __d($po_domain, 'price_blank', true), array('required' => true, 'vertical' => false));?>
	    <? endif; ?>
	    <?$back_button = $editForm->back($url_part);
	$submit_button = $editForm->submit(__d(null, 'save', true), array());
	$buttonsHTML = '';

	$buttonsHTML .= (strlen($buttonsHTML) ? ' ' : '').$back_button;
	if ($this->data[$modelName]['__allows']['update']) {
	   $buttonsHTML .= (strlen($buttonsHTML) ? ' ' : '').$submit_button;
	}
	if (strlen($buttonsHTML)) {
    	?><?=$editForm->cell($buttonsHTML);?><?php
	}

?>
<?=$editForm->endSet();?>
<?=$editForm->end();?><?php

?>